home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16910 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  916 b 

  1. Path: news.cdsnet.net!usenet
  2. From: Craig Pennington <coherent@mail.cdsnet.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Q: Prohibiting Multiple Program Instances in MFC (VC++4.0)
  5. Date: Fri, 12 Apr 1996 08:46:20 -0700
  6. Organization: Coherent Systems, Inc.
  7. Message-ID: <316E7ACC.23EA@mail.cdsnet.net>
  8. References: <316BFE04.130E@osu.edu>
  9. NNTP-Posting-Host: med-pm2-003.cdsnet.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Find the infoviewer article Q109175 to prevent multiple 
  16. instances.  It suggest registering a class, and then checking 
  17. for the existence of that class as a means of knowing your app 
  18. is already running.
  19.  
  20. Actually, the sample code won't quite work because (I think) the 
  21. AfxFrameOrView class is no longer defined.  But you can 
  22. determine what attributes it has.
  23.  
  24. Good luck.
  25.  
  26. Craig Pennington
  27. Coherent Systems, Inc.
  28.